Skip to content

Commit fb489f1

Browse files
author
koca2000
committed
First commit
0 parents  commit fb489f1

19 files changed

+1228
-0
lines changed

.gitignore

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
#################
2+
## General
3+
#################
4+
5+
.classpath
6+
.project
7+
.settings/
8+
target/
9+
/target
10+
.gitattributes
11+
*.iml
12+
*.idea
13+
*.ida
14+
/idea
15+
idea/
16+
/ida
17+
ida/
18+
dependency-reduced-pom.xml
19+
20+
#################
21+
## Eclipse
22+
#################
23+
24+
*.pydevproject
25+
.project
26+
.metadata
27+
bin/
28+
tmp/
29+
*.tmp
30+
*.bak
31+
*.swp
32+
*~.nib
33+
local.properties
34+
.classpath
35+
.settings/
36+
.loadpath
37+
38+
# External tool builders
39+
.externalToolBuilders/
40+
41+
# Locally stored "Eclipse launch configurations"
42+
*.launch
43+
44+
# CDT-specific
45+
.cproject
46+
47+
# PDT-specific
48+
.buildpath
49+
50+
51+
#################
52+
## Visual Studio
53+
#################
54+
55+
## Ignore Visual Studio temporary files, build results, and
56+
## files generated by popular Visual Studio add-ons.
57+
58+
# User-specific files
59+
*.suo
60+
*.user
61+
*.sln.docstates
62+
63+
# Build results
64+
65+
[Dd]ebug/
66+
[Rr]elease/
67+
x64/
68+
build/
69+
[Bb]in/
70+
[Oo]bj/
71+
72+
# MSTest test Results
73+
[Tt]est[Rr]esult*/
74+
[Bb]uild[Ll]og.*
75+
76+
*_i.c
77+
*_p.c
78+
*.ilk
79+
*.meta
80+
*.obj
81+
*.pch
82+
*.pdb
83+
*.pgc
84+
*.pgd
85+
*.rsp
86+
*.sbr
87+
*.tlb
88+
*.tli
89+
*.tlh
90+
*.tmp
91+
*.tmp_proj
92+
*.log
93+
*.vspscc
94+
*.vssscc
95+
.builds
96+
*.pidb
97+
*.log
98+
*.scc
99+
100+
# Visual C++ cache files
101+
ipch/
102+
*.aps
103+
*.ncb
104+
*.opensdf
105+
*.sdf
106+
*.cachefile
107+
108+
# Visual Studio profiler
109+
*.psess
110+
*.vsp
111+
*.vspx
112+
113+
# Guidance Automation Toolkit
114+
*.gpState
115+
116+
# ReSharper is a .NET coding add-in
117+
_ReSharper*/
118+
*.[Rr]e[Ss]harper
119+
120+
# TeamCity is a build add-in
121+
_TeamCity*
122+
123+
# DotCover is a Code Coverage Tool
124+
*.dotCover
125+
126+
# NCrunch
127+
*.ncrunch*
128+
.*crunch*.local.xml
129+
130+
# Installshield output folder
131+
[Ee]xpress/
132+
133+
# DocProject is a documentation generator add-in
134+
DocProject/buildhelp/
135+
DocProject/Help/*.HxT
136+
DocProject/Help/*.HxC
137+
DocProject/Help/*.hhc
138+
DocProject/Help/*.hhk
139+
DocProject/Help/*.hhp
140+
DocProject/Help/Html2
141+
DocProject/Help/html
142+
143+
# Click-Once directory
144+
publish/
145+
146+
# Publish Web Output
147+
*.Publish.xml
148+
*.pubxml
149+
150+
# NuGet Packages Directory
151+
#packages/
152+
153+
# Windows Azure Build Output
154+
csx
155+
*.build.csdef
156+
157+
# Windows Store app package directory
158+
AppPackages/
159+
160+
# Others
161+
sql/
162+
*.Cache
163+
ClientBin/
164+
[Ss]tyle[Cc]op.*
165+
~$*
166+
*~
167+
*.dbmdl
168+
*.[Pp]ublish.xml
169+
*.pfx
170+
*.publishsettings
171+
172+
# RIA/Silverlight projects
173+
Generated_Code/
174+
175+
# Backup & report files from converting an old project file to a newer
176+
# Visual Studio version. Backup files are not needed, because we have git ;-)
177+
_UpgradeReport_Files/
178+
Backup*/
179+
UpgradeLog*.XML
180+
UpgradeLog*.htm
181+
182+
# SQL Server files
183+
App_Data/*.mdf
184+
App_Data/*.ldf
185+
186+
#############
187+
## Windows detritus
188+
#############
189+
190+
# Windows image file caches
191+
Thumbs.db
192+
ehthumbs.db
193+
194+
# Folder config file
195+
Desktop.ini
196+
197+
# Recycle Bin used on file shares
198+
$RECYCLE.BIN/
199+
200+
# Mac crap
201+
.DS_Store
202+
203+
204+
#############
205+
## Python
206+
#############
207+
208+
*.py[co]
209+
210+
# Packages
211+
*.egg
212+
*.egg-info
213+
dist/
214+
build/
215+
eggs/
216+
parts/
217+
var/
218+
sdist/
219+
develop-eggs/
220+
.installed.cfg
221+
222+
# Installer logs
223+
pip-log.txt
224+
225+
# Unit test / coverage reports
226+
.coverage
227+
.tox
228+
229+
#Translations
230+
*.mo
231+
232+
#Mr Developer
233+
.mr.developer.cfg

pom.xml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.xxmicloxx</groupId>
8+
<artifactId>NoteBlockAPI</artifactId>
9+
<version>1.8.7</version>
10+
<repositories>
11+
<repository>
12+
<id>spigot-repo</id>
13+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
14+
</repository>
15+
</repositories>
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.bukkit</groupId>
19+
<artifactId>bukkit</artifactId>
20+
<version>1.9-R0.1-SNAPSHOT</version>
21+
<scope>provided</scope>
22+
</dependency>
23+
</dependencies>
24+
<distributionManagement>
25+
<repository>
26+
<id>sinndev-repo</id>
27+
<name>Releases</name>
28+
<url>http://repo.sinndev.com/content/repositories/releases/</url>
29+
</repository>
30+
<snapshotRepository>
31+
<id>sinndev-repo</id>
32+
<name>Snapshots</name>
33+
<url>http://repo.sinndev.com/content/repositories/snapshots/</url>
34+
</snapshotRepository>
35+
</distributionManagement>
36+
<build>
37+
<plugins>
38+
<plugin>
39+
<groupId>org.apache.maven.plugins</groupId>
40+
<artifactId>maven-compiler-plugin</artifactId>
41+
<version>3.1</version>
42+
<configuration>
43+
<source>1.7</source>
44+
<target>1.7</target>
45+
</configuration>
46+
</plugin>
47+
</plugins>
48+
</build>
49+
</project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.xxmicloxx.NoteBlockAPI;
2+
3+
public enum FadeType {
4+
FADE_LINEAR
5+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package com.xxmicloxx.NoteBlockAPI;
2+
3+
import org.bukkit.Sound;
4+
5+
public class Instrument {
6+
7+
public static Sound getInstrument(byte instrument) {
8+
switch (instrument) {
9+
case 0:
10+
return Sound.BLOCK_NOTE_HARP;
11+
case 1:
12+
return Sound.BLOCK_NOTE_BASS;
13+
case 2:
14+
return Sound.BLOCK_NOTE_BASEDRUM;
15+
case 3:
16+
return Sound.BLOCK_NOTE_SNARE;
17+
case 4:
18+
return Sound.BLOCK_NOTE_HAT;
19+
default:
20+
return Sound.BLOCK_NOTE_HARP;
21+
22+
}
23+
}
24+
25+
public static org.bukkit.Instrument getBukkitInstrument(byte instrument) {
26+
switch (instrument) {
27+
case 0:
28+
return org.bukkit.Instrument.PIANO;
29+
case 1:
30+
return org.bukkit.Instrument.BASS_GUITAR;
31+
case 2:
32+
return org.bukkit.Instrument.BASS_DRUM;
33+
case 3:
34+
return org.bukkit.Instrument.SNARE_DRUM;
35+
case 4:
36+
return org.bukkit.Instrument.STICKS;
37+
default:
38+
return org.bukkit.Instrument.PIANO;
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)