Skip to content

Commit

Permalink
add temp layout
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentinTheKid committed Sep 17, 2024
1 parent 7b536dc commit 35b2cb0
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docs/developers/modules/beam.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ The beam module allows you to create custom beams resembling beacon beams, which

## Integration

### Sample Code
Explore each integration by cycling through each tab, to find the best fit for your requirements and needs.

### Sample Code

<Tabs items={['Apollo API', 'apollo-protos library', 'Manual JSON Object Construction']}>

<Tab>
Expand Down Expand Up @@ -163,6 +164,27 @@ public void resetBeamsExample(Player viewer) {
}
```

### `Beam` Options

`.setId(String)` should include a unique identifier for the beam.

```java
.setId("spawn-beacon")
```

`.setColor()` Lorem ipsum dolor sit amet, consectetur adipiscing elit.

```java
.setColor(ProtobufUtil.createColorProto(Color.CYAN))
```

`.setLocation()` Lorem ipsum odor amet, consectetuer adipiscing elit.

```java
.setLocation(ProtobufUtil.createBlockLocationProto(new Location(viewer.getWorld(), 0, 60, 0)))
```


</Tab>

<Tab>
Expand Down

1 comment on commit 35b2cb0

@LunarClientBot
Copy link
Collaborator

@LunarClientBot LunarClientBot commented on 35b2cb0 Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📄 Documentation Deployment

Status:✅ Completed
Environment:preview
URL:https://781347f1.lunarclient-dev.pages.dev

Please sign in to comment.